package cn.db101.jcc.service;

import cn.db101.jcc.entity.Banner;
import cn.db101.jcc.mapper.BannerMapper;
import com.mybatisflex.core.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author win
 * @description 针对表【t_banner】的数据库操作Service实现
 * @createDate 2024-06-11 01:42:58
 */
@Service
public class BannerService {

    @Autowired
    private BannerMapper bannerMapper;

    public List<Banner> bannerList() {

        return bannerMapper.selectListByQuery(QueryWrapper.create().orderBy(Banner::getSort, true));
    }

}




